class MYclaSS():
    size = 10 * 10
    sing = False
    # 私有变量 用下划线
    _name = "myclass"

    def m_jia(self, a, b):
        print(self.size)
        return a + b

    def m_jian(self, a, b):
        return a - b


class MYclaSS1(MYclaSS):
    def m1(self):
        print("我自己")

    def m1_jian(self, a, b):
        print("我是继承后的")
        try:
            c = a - b
        except Exception as d:
            print(f"发生异常：{d}")
        else:
            print("没有异常")
            print(c)
            return c
        finally:
            print("运算结束")


if __name__ == '__main__':
    # jia(10,20)
    # my=MYclaSS()
    # print(my.m_jian(100,20))
    my1 = MYclaSS1()
    my1.m1_jian(10, "6")
